/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dao.impl;

import dao.ChucNangDAO;
import java.util.List;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import pojo.ChucNang;

/**
 *
 * @author pvhuy
 */
public class ChucNangDAOImpl extends HibernateDaoSupport implements ChucNangDAO{

    @Override
    public void saveChucNang(ChucNang chucNang) {
        getHibernateTemplate().save(chucNang);
    }

    @Override
    public List<ChucNang> listChucNang() {
        return getHibernateTemplate().find("from ChucNang");
    }

}
